$NG.AllReady(function (page, { useAction, useBeforeClick, useValuesChange, useClick, useUpdateRow, subscribe, useUpdateRows }) {
    const mstform = $NG.getCmpApi("p_form_zlglx_m")

    isYtpd()
    if (page.oType == 'add') { }
    if (!mstform.getItem("u_tbnd").getValue()) {
        mstform.getItem("u_tbnd").setValue({
            label: new Date().getFullYear(),
            value: new Date().getFullYear(),
        })
    }
    if (!mstform.getItem("u_bz_").getValue()) {
        mstform.getItem("u_bz_").setValue(`“授权类别”和“授权日期”两项由总局科技人员填写！`)
    }
        if (!mstform.getItem("u_sm").getValue()) {
        mstform.getItem("u_sm").setValue(`包括：1.说明书；2.CAD图。`)
    }
    useValuesChange(() => {
        isYtpd()
    }, "p_form_zlglx_m.u_sfytkyxm")

    // 是否依托判断
    function isYtpd() {
        const u_sfytkyxm = mstform.getItem("u_sfytkyxm").getValue()
        let hid = true
        if (u_sfytkyxm == '01') {
            hid = false
        }
        $NG.updateUI((updater) => {
            updater.fieldSetForm.p_form_zlglx_m.u_ytkyxm.setProps({
                hidden: hid,
                // required:!hid
            })
        })
    }
})